package com.jwsoft.manager.gateway.req;

import com.xiaoyy.core.common.validators.Validators;
import com.xiaoyy.core.common.vo.BasePageVO;
import com.xiaoyy.sso.gateway.validators.UserValidators;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;


/**
 * <p>
 * 测试表
 * </p>
 *
 * @author chenzh
 * @since 2020-09-28
 */
@Data
@ApiModel(value="测试分页查询对象", description="测试表")
public class DemoTestReq extends BasePageVO {


    @ApiModelProperty(value = "主键")
    private Long demoId;
    /**
     * 根据条件校验字段需要和controller配合使用
     * */
    @ApiModelProperty(value = "姓名",required = true)
    @NotBlank(groups = {
            Validators.Add.class,
            Validators.Edit.class
    },message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;


}
